﻿using B.S.DataBase.MyProject.Domain.Materials;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;

namespace T.E.ERP.Write.API.Applicantions.Command.ProcurementsCommand
{
    /// <summary>
    /// 采购订单的编辑
    /// </summary>
    public class UpdatePurcersCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 采购订单id
        /// </summary>
        public int PurchaseOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocumentCode { get; set; }
        /// <summary>
        /// /单据日期
        /// </summary>
        public DateTime DocumentStatus { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string? BusinessStatus { get; set; }
        /// <summary>
        /// 业务状态(正常,挂起,手工关闭,系统关闭)
        /// </summary>
        public string? BusinessType { get; set; }
        /// <summary>
        /// 业务类型(外键)
        /// </summary>
        public int Documentid { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string? PurchasingDe { get; set; }
        /// <summary>
        /// 采购部门(外键)
        /// </summary>
        public string Purchasingid { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string? Operator { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public string? Auditor { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public string? AuditDate { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime MaterialData { get; set; }
        /// <summary>
        /// 用料需求
        /// </summary>
        public string? MaterialRire { get; set; }
        /// <summary>
        /// 供方id(外键)
        /// </summary>
        public string? Supid { get; set; }
        /// <summary>r
        /// 到货日期
        /// </summary>
        public string? ArrivalDate { get; set; }
        /// <summary>
        /// 采购合同
        /// </summary>
        public string? PurchaseContract { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string? RemarksInfor { get; set; }



        public List<Materials_Info> materials_Infos { get; set; }
    }
}
